  <li id="micropost-<%= micropost.id %>">
    <%= link_to gravatar_for(micropost.user, size: 50), micropost.user %>
    <span class="user"><%= link_to micropost.user.name, micropost.user %></span>
    <span class="content">
    <%= micropost.content %>
      <%= image_tag micropost.picture.url if micropost.picture? %>
  </span>
    <span class="timestamp">
    发布于 <%= time_ago_in_words(micropost.created_at) %> 以前.
      <% if current_user?(micropost.user) %>
      <%= link_to "删除", micropost, method: :delete,
                  data: {confirm: "你确定？"} %>
    <% end %>
  </span>
  </li>